
package com.one.odf.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for rankingsType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="rankingsType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="ExtendedInfos" type="{}extendedInfosType" minOccurs="0"/&gt;
 *         &lt;element name="Ranking" type="{}rankingType" maxOccurs="unbounded"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="Description" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "rankingsType", propOrder = {
    "extendedInfos",
    "ranking"
})
public class RankingsType {

    @XmlElement(name = "ExtendedInfos")
    protected ExtendedInfosType extendedInfos;
    @XmlElement(name = "Ranking", required = true)
    protected List<RankingType> ranking;
    @XmlAttribute(name = "Code", required = true)
    protected String code;
    @XmlAttribute(name = "Description")
    protected String description;

    /**
     * Gets the value of the extendedInfos property.
     * 
     * @return
     *     possible object is
     *     {@link ExtendedInfosType }
     *     
     */
    public ExtendedInfosType getExtendedInfos() {
        return extendedInfos;
    }

    /**
     * Sets the value of the extendedInfos property.
     * 
     * @param value
     *     allowed object is
     *     {@link ExtendedInfosType }
     *     
     */
    public void setExtendedInfos(ExtendedInfosType value) {
        this.extendedInfos = value;
    }

    /**
     * Gets the value of the ranking property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the ranking property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRanking().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link RankingType }
     * 
     * 
     */
    public List<RankingType> getRanking() {
        if (ranking == null) {
            ranking = new ArrayList<RankingType>();
        }
        return this.ranking;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets the value of the description property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDescription() {
        if (description == null) {
            return "";
        } else {
            return description;
        }
    }

    /**
     * Sets the value of the description property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDescription(String value) {
        this.description = value;
    }

}
